/*
* @Date: 2021/1/22
* @Author: XueChengwu <xuechengwu@erayt.com>
* @Copyright: 2015-2019 Erayt, Inc.
* @Description: If you have some questions, please contact: xuechengwu@erayt.com.
*/

export default {
  display: 'inline-block',
  props: [{
    key: 'autoFocus',
    type: 'boolean',
    label: '自动焦点',
  }, {
    key: 'decimalSeparator',
    type: 'string',
    label: '小数点',
  }, {
    key: 'defaultValue',
    type: 'number',
    label: '初始值',
  }, {
    key: 'disabled',
    type: 'boolean',
    label: '禁用',
  }, {
    key: 'formatter',
    type: 'function',
    function: '(value)',
    label: '格式',
  }, {
    key: 'max',
    type: 'number',
    label: '最大值',
  }, {
    key: 'min',
    type: 'number',
    label: '最小值',
  }, {
    key: 'parser',
    type: 'function',
    function: '(value)',
    label: '解析函数',
  }, {
    key: 'precision',
    type: 'number',
    label: '精度',
  }, {
    key: 'readOnly',
    type: 'boolean',
    label: '只读',
  }, {
    key: 'size',
    type: 'select',
    options: ['large', 'middle', 'small'],
    label: '大小',
  }, {
    key: 'step',
    type: 'number',
    label: '步长',
  }, {
    key: 'value',
    type: 'string',
    label: '当前值',
  }, {
    key: 'onChange',
    type: 'function',
    function: '(value)',
    label: '变化回调',
  }, {
    key: 'onPressEnter',
    type: 'function',
    function: '(e)',
    label: '回车回调',
  }, {
    key: 'onStep',
    type: 'function',
    function: '(value, info)',
    label: '箭头回调',
  }]
}
